package com.eternal.base.database.entity;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.annotation.NonNull;

/**
 * Created by Administrator
 * On 2020/4/23
 * Description:
 * @author Administrator
 */
@Entity(primaryKeys = {"mac", "id", "model","port"})
public class    Log {
    public static final byte TYPE_LOG=0;
    public static final byte TYPE_AUTOMATION=1;
    public static final byte TYPE_ALARM=2;
    public static final byte TYPE_NOTIFY=3;
    public static final byte MODEL_OFF=1;
    public static final byte MODEL_ON=2;
    public static final byte MODEL_AUTO=3;
    public static final byte MODEL_TIME_ON=4;
    public static final byte MODEL_TIME_OFF=5;
    public static final byte MODEL_CYCLE=6;
    public static final byte MODEL_SCHEDULE=7;
    public static final byte MODEL_PARAM=8;

    @NonNull
    public String mac;
    public int id;
    public long time;
    public byte logType;
    public byte notifyId;
    public char start, end;
    public byte model;
    public byte fan;
    public short tmpHum;
    public byte hTmpF, lTmpF, hTmpC, lTmpC;
    public byte hHum, lHum;
    public char on, off;
    public boolean isStart;
    @ColumnInfo(defaultValue = "0")
    public byte port;
}
